// 返回同步action

export const incrementAction = data => ({ type: 'increment', data })

export const decrementAction = data => ({ type: 'decrement', data })

// 异步action
export const incrementAsync = data => {
  return dispatch => {
    setTimeout(() => {
      dispatch(incrementAction(data))
    }, 500)
  }
}
